local config = require 'next.config'
local lazypath = config.plugins.install_path .. "/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    config.plugins.prefer == 'gitee' and "https://gitee.com/Ziphold/lazy.nvim.git" or "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release;
    lazypath,
  }) 
end
vim.opt.rtp:prepend(lazypath)
